//
//  PywCouponHeadView.h
//  PywSdk
//
//  Created by Jade on 16/8/25.
//  Copyright © 2016年 zero. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void (^SelectItemComplete)(NSInteger index);
@interface PywCouponHeadView : UIView
@property (nonatomic,copy) SelectItemComplete selectItem;
- (instancetype)initWithItemTitles:(NSArray *)itemTitles;
/**
 *  切换选中的item
 *
 *  @param index <#index description#>
 */
- (void)switchItemButtonWithIndex:(NSInteger)index;
/**
 *  更新Item title
 *
 *  @param titles <#titles description#>
 */
- (void)updateItemTitle:(NSArray *)titles;
/**
 *  更新item间隔
 *
 */
- (void)updateItemPadding;
@end
